//
//  FetchIPAdressManager.h
//  IPDirectConnection
//
//  Created by lianglibao on 2019/4/20.
//  Copyright © 2019 lianglibao. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@interface IPRegularModel : NSObject
@property (nonatomic, assign) BOOL isIPV4;
@property (nonatomic, assign) BOOL isIPV6;
@property (nonatomic, assign) BOOL isIP;
@end

@interface FetchIPAdressManager : NSObject
+ (IPRegularModel *)isIPadress:(NSString *)host;
+ (NSString *)fetchIPAdressWithURL:(NSURL *)url;
+ (NSString *)getHostWithIPAdress:(NSString *)ip;

@end

NS_ASSUME_NONNULL_END
